function insertTable(humanData) {
    const insertFields = [
        ['std_human_id', humanData.stdHumanId],
        ['human_name', `'${humanData.humanName}'`],
        ['human_type_code', `'${humanData.humanTypeCode}'`],
        ['human_type_name', `'${humanData.humanTypeName}'`],
        ['opt_type', `'I'`],
        ['create_time', 'NOW()'],
        ['update_time', 'NOW()'],
    ];

    const formattedFields = insertFields.map(([key, value]) => {
        return `'${key}',${value}`;
    });

    const law_std_human_type = "ds_tbl:t_fd4a2bceb59e4d4cb143ff7a73d85222";
    const insertSql = `INSERT('${law_std_human_type}', [${formattedFields.join(',')}])`;
    console.log(insertSql);
}

function updateTable() {
    let tableId = '';
    api.EXEC_FORMULA(`UPDATE('${tableId}', QUERY_EQ('region_code', '" + code + "'), '', ['number_index', '" + numberIndex + "'])`).then(res => {

    });
}

function deleteTable() {
    let tableId = 't_4cecf07d7b2d4f34a0b1c7616385fa9b';
    api.ENTITY_DELETE(tableId, {documentNo: defaultParams["f_4392f7cfc53d4aaea873c2576b3af71b"]}).then((res) => {

    });
}
